﻿using System;
using System.Collections.Generic;
using System.Text;

namespace QueueTest
{
    class CheckAger
    {
        public static Message CheckAge(Person person)
        {
            if (person != null && person.Age > 55)
            {
                return new Message() { ErrorCode = "Error_0002", ErrorInfo = "We don't accept the elderly." };
            }
            return null;
        }
    }
}
